package cn.getech.data.development.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel
public class TablePartitionStatisticsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表id
     */
    @ApiModelProperty("表id")
    private int id;

    @ApiModelProperty("表id")
    private int tableId;

    @ApiModelProperty("字段id")
    private int fieldId;

    @ApiModelProperty("分区字段名")
    private String fieldName;

    @ApiModelProperty("分区值")
    private String partitionValue;

    @ApiModelProperty("分区数据行数")
    private int rowNum;

    @ApiModelProperty("分区数据占内存大小")
    private double size;

    @ApiModelProperty("分区数据占内存大小")
    private String sizeStr;

    @ApiModelProperty("统计时间")
    private String countTime;

    @ApiModelProperty("文件数据量")
    private Long fileNum = 0L;

    public TablePartitionStatisticsVO(){}

    public TablePartitionStatisticsVO(int id, int tableId,  String fieldName, String partitionValue, int rowNum, double size) {
        this.id = id;
        this.tableId = tableId;
        this.fieldName = fieldName;
        this.partitionValue = partitionValue;
        this.rowNum = rowNum;
        this.size = size;
    }
}
